/* eslint-disable valid-typeof */
var staticStrUndefined = require('./staticStrUndefined')

var supportWeakMap = typeof WeakMap !== staticStrUndefined

function isWeakMap(obj) {
  return supportWeakMap && obj instanceof WeakMap
}

module.exports = isWeakMap

// console.log(isWeakMap(new WeakMap())) // true
// console.log(isWeakMap(new Map())) // false
